package com.yonyou.pmclouds.workConnect.service.rmiitf;

import com.yonyou.pmclouds.basecom.entity.PageObject;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.billview.entity.BillViewQueryVO;
import com.yonyou.pmclouds.workConnect.entity.WorkConnectVO;

import java.util.List;

public interface WorkConnectQuery {
    /**
     * 根据主键查询【处理参照字段】
     * @param pk_workconnect
     * @return
     * @throws BusinessException
     */
    WorkConnectVO selectOne(String pk_workconnect) throws BusinessException;
    /**
     * 根据项目查【根据项目批量查询的时候不处理参照字段】
     * @param pk_project
     * @return
     * @throws BusinessException
     */
    List<WorkConnectVO> selectByPkProject(String pk_project) throws BusinessException;

    String[] queryPics(String pk_workconnect) throws BusinessException;
    /**
     * 引用校验
     * @param code
     * @param ids
     * @return
     * @throws BusinessException
     */
    boolean queryRefByIds(String code, String[] ids) throws BusinessException;

    PageObject<Object> queryByCondition(BillViewQueryVO billViewQueryVO) throws BusinessException;


}
